home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 43 / Mac Magazin and MacEasy Magazine CD - Issue 43.iso / Software / Mobiles Büro / Newton / Newton Entwickler / DIL 2.0 Sample Code ƒ / DILette-Mac-2 / DILette.MPW.make < prev    next >
Text File  |  1996-01-04  |  1KB  |  38 lines

  1. ##### DILette makefile #####
  2. #
  3. # Created by David Fedor, nothing special but it works.
  4. # Copyright 1996 Apple Computer, Inc.  All rights reserved.
  5. #
  6. # To build DILette, set SRCPATH (below) to the directory of your source files,
  7. # and execute the following commands:
  8. #    make DILette.MPW -f DILette.MPW.make > MakeOut 
  9. #    MakeOut
  10. #
  11. #### update this with the path to your source directory (spaces are probably bad...)
  12. SRCPATH = Innards:DILs:DILette:
  13.  
  14. OBJECTS = "{SRCPATH}"DILette.c.o
  15.  
  16. ### this says how to compile the .c file...
  17. "{SRCPATH}"DILette.c.o ƒ DILette.MPW.make "{SRCPATH}"DILette.c
  18.      C -model far -r  "{SRCPATH}"DILette.c
  19.  
  20.  
  21. ### this links the .o files together...
  22. DILette.MPW ƒƒ DILette.MPW.make  {OBJECTS}
  23.     Link -model far -t APPL ∂
  24.         {OBJECTS} ∂
  25.         "{Libraries}"CPlusLib.o ∂
  26.         "{CLibraries}"StdClib.o ∂
  27.          "{Libraries}"Runtime.o ∂
  28.          "{Libraries}"Interface.o ∂
  29.         "{SRCPATH}"CDIL.MPW.Lib ∂
  30.         -o DILette.MPW
  31.  
  32.  
  33. ### these create a .r file from the .rsrc file, and use that .r to create the APPL
  34. "{SRCPATH}"CSTR.r ƒ "{SRCPATH}"CSTR.rsrc
  35.     DeRez "{SRCPATH}"CSTR.rsrc > "{SRCPATH}"CSTR.r
  36. DILette.MPW ƒƒ "{SRCPATH}"CSTR.r
  37.     Rez -rd -o DILette.MPW "{SRCPATH}"CSTR.r -append
  38.